# ch03 The Book of Ruby - http://www.sapphiresteel.com

#
class MyClass
  attr_accessor :name
  attr_accessor :number

  def initialize(aName, aNumber)
    @name   = aName
    @number = aNumber
  end

  def ten
    10
  end
end

ob = MyClass.new('James Bond', '007')
puts("Double quoted: My name is #{ob.name} and my number is #{ob.number}")
puts("A tab\tnew line\ncalculation #{2 * 3} and method-call #{ob.ten}")
puts('Single-quoted: My name is #{ob.name} and my number is #{ob.number}')
puts('A tab\tnew line\ncalculation #{2*3} and method-call #{ob.ten}')
